package com.itheima.shop.fly_weight_review;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-27 14:56
 **/
@Component
public class MvcConfigReview implements WebMvcConfigurer {
    @Autowired
    AuthorizationInterceptorReview authorizationInterceptorReview;
    
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(authorizationInterceptorReview)
                .addPathPatterns("/user/login")
        ;
    }
}
